package cn.ibizlab.odoo.core.odoo_mail.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mail.domain.Mail_notification;
import cn.ibizlab.odoo.core.odoo_mail.filter.Mail_notificationSearchContext;

/**
 * 实体[Mail_notification] 服务对象接口
 */

public interface IMail_notificationService{
     boolean update(Mail_notification mail_notification) ;
     void createBatch(List<Mail_notification> mail_notifications, int batchSize) ;
     boolean create(Mail_notification mail_notification) ;
     Mail_notification get(Integer id) ;
     Mail_notification get(Mail_notification mail_notification) ;
     void updateBatch(List<Mail_notification> mail_notifications, int batchSize) ;
     boolean remove(Integer id) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mail_notification> searchDefault(Mail_notificationSearchContext context) ;

    /**
     * 根据寄出邮件查询
     */
     Page<Mail_notification> selectByOdoo_mail(Integer id) ;

    /**
     * 根据消息查询
     */
     Page<Mail_notification> selectByOdoo_mail_message(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Mail_notification> selectByOdoo_res_partner(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mail_notification convert2Domain(cn.ibizlab.odoo.core.client.model.Imail_notification model ,Mail_notification domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imail_notification convert2Model(Mail_notification domain , cn.ibizlab.odoo.core.client.model.Imail_notification model);

}
